package scan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 因为已经通过DataSourceConfig对数据源进行了数据源初始化，
 * 不再需要spring boot的那一套自动初始化，
 * 导致自动加载循环引用
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan(basePackages = "scan.mapper")
@EnableAspectJAutoProxy(exposeProxy = true)
public class TestApplication {
    public static void main(String args[])
    {
        SpringApplication.run(TestApplication.class,args);
    }
}
